<template>
  <div>
      <div class="moveComponent">
         <slot></slot>
         <div class="moveMain">
             <ul>
                 <li v-for="(item,index) in record" :key="index">
                     <router-link :to="{name:'moveDetailed',query:item}">
                     <img :src="item.cover" alt="">
                     <p class="mainCont van-multi-ellipsis--l2" >{{item.project_name}}</p>
                     <p class="mainPrice">￥ {{item.price_low/100}}</p>
                     <p class="mainHot">{{item.countdown}}</p>
                     </router-link>
                 </li>          
             </ul>
         </div>
     </div>
  </div>
</template>

<script>
export default {

        props:['record',]
}
</script>

<style>
.moveComponent{
    width: 100%;
    margin-top: 12px;
}
.tit{
    height: 40px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: #999;
    font-size: 12px;
    line-height: 40px;
}
.moveMain{ 
    width: 100%;
    overflow-x: scroll;
    position: relative;
    overflow-y:hidden ;
    height: 265px;
}
.moveMain ul{
    display: flex;
   flex-direction: row;
   width: auto;
   position: absolute;
   left: 0;
}
.moveMain ul li{
    width: 130px ;
    height: 260px;
    margin-left: 10px;
    box-shadow: 2px 2px 5px #c5c4c4;
    border-radius: 10px;
}
.moveMain li img{
    height: 173px;
    width: 100%;
}
.moveMain li .mainCont{
    margin-top: 5px;
    color: #212121;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 18px;
    font-size: 16px;
    font-weight: 700;
    margin-left: 5px;
}
.moveMain .mainPrice{
    height: 20px;
    font-size: 18px;
    line-height:20px;
    color:#ff5687;
    margin-top: 3px;
    margin-left: 5px;

}
.moveMain .mainHot{
    height: 22px;
    text-align: center;
    background-color: #fff2f6;
    overflow: hidden;
    line-height: 22px;
    font-size: 14px;
    color:#ff5687;
}
</style>